package com.liam.api;

import com.liam.api.domain.dto.JudgeSubmitDTO;
import com.liam.api.domain.vo.UserQuestionResultVO;
import com.liam.common.core.constants.Constants;
import com.liam.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: LiamLMK
 * @CreateTime: 2025-05-05
 * @Description:
 * @Version: 1.0
 */


@FeignClient(contextId = "RemoteJudgeService", value = Constants.JUDGE_SERVICE)
public interface RemoteJudgeService {

    @PostMapping("/judge/doJudgeJavaCode")
    R<UserQuestionResultVO> doJudgeJavaCode(@RequestBody JudgeSubmitDTO judgeSubmitDTO);
}



